CC = gcc
AR = ar
RM = rm
BUILD_DIR = ../../../build/libs/

all: libutils.so
OBJS = trim.o

.c.o:
	$(CC) -c $<

libutils.so: $(OBJS)
	mkdir -p $(BUILD_DIR)/libutils
	$(AR) -cvq $@ $(OBJS)
	mv $@ $(BUILD_DIR)/libutils
	make clean

clean:
	$(RM) -f *.o *.so
